import request from '@/utils/request'
export function addScaleScreen(data) {
  return request({
    url: '/dcp/patient/scaleScreen',
    method: 'post',
    data: data
  })
}

export function updateDoctor(param){
  return request({
    url: '/dcp/patient/doctor',
    method: 'get',
    params: param
  })
}

// 查询病患管理列表
export function listPatient(query) {
  return request({
    url: '/dcp/patient/list',
    method: 'get',
    params: query
  })
}

// 查询病患管理详细
export function getPatient(patientId) {
  return request({
    url: '/dcp/patient/' + patientId,
    method: 'get'
  })
}

// 新增病患管理
export function addPatient(data) {
  return request({
    url: '/dcp/patient',
    method: 'post',
    data: data
  })
}

// 修改病患管理
export function updatePatient(data) {
  return request({
    url: '/dcp/patient',
    method: 'put',
    data: data
  })
}

// 删除病患管理
export function delPatient(patientId) {
  return request({
    url: '/dcp/patient/' + patientId,
    method: 'delete'
  })
}

//全查
export function listPatients() {
  return request({
    url: '/dcp/patient/listPatients',
    method: 'get'
  })
}
